class BackgroundConfig extends egret.Sprite{
	public constructor() {
		super();
		
		this.addEventListener(egret.Event.ADDED_TO_STAGE,this.init,this);
	}
	private init() {
		// 遮盖层
		var cover:egret.Shape = new egret.Shape();
		
		cover.graphics.beginFill( 0x000000, 0.5);
		
		cover.graphics.drawRect( 0, 0, this.stage.stageWidth, this.stage.stageHeight );
		
		cover.graphics.endFill();
        
		this.addChild(cover );
	};
}